package com.qf.agro.facilities;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @company：千锋教育
 * @author：zhy
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("sa_agro_facilities")
public class Facilities  implements Serializable {

    @TableId
    private Long id;

    private String facilitiesName;

    private Long categoryId;

    private String categoryName;

    private String provinceName;

    private String cityName;

    private String townName;

    private Double occupationArea;

    private Integer deviceCount;

    private Integer state;

    private Long userId;

    private String userName;

    private String remark;

    @TableField(fill = FieldFill.INSERT)
    private Long createBy;

    private Long createGroup;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateBy;

    private Long updateGroup;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableField(fill = FieldFill.INSERT)
    private Long companyId;
    @TableField(fill = FieldFill.INSERT)
    private String companyName;

    private String linkman;

    private String linkmanTel;
}